package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SupplierDao {

    List<Supplier> selectListBySupplierName(@Param("offSite") int offSite,
                                            @Param("rows") Integer rows,
                                            @Param("supplierName") String supplierName);

    Integer getSupplierCount(@Param("supplierId") Integer supplierId);

    void updateSupplierById(@Param("supplier") Supplier supplier);

    void insertSupplierById(Supplier supplier);

    void delete(String[] split);
}
